libostree: set directory mtimes to 0 on checkout
authorDaniel Drake <drake@endlessm.com>
Wed, 18 Feb 2015 23:18:21 +0000 (17:18 -0600)
committerColin Walters <walters@verbum.org>
Wed, 18 Feb 2015 23:27:18 +0000 (18:27 -0500)
commit7c267d6089248a0c7976600298b8e0240824ada3
treee40aa768bbadfcf81e79134b4e2a8fca6e78486d
parentc2d439f115abc45aacdb3bc4b590816e0c3155c4
libostree: set directory mtimes to 0 on checkout

We already set all file mtimes to 0 so that they are constant
over all checkouts, and can be made constant with a known value from
the system where the ostree was created.

However, this was not happening for directories. Zero their mtimes too.

This is important for shipping a fontconfig cache in the ostree;
the fontconfig cache files embed a directory mtime.
src/libostree/ostree-repo-checkout.c
tests/basic-test.sh